package com.rock.code.base.domain;

/**
 * Created with IntelliJ IDEA.
 * User: zhangdajun
 * Date: 14-4-12
 * Time: 上午12:19
 * To change this template use File | Settings | File Templates.
 */
public class Constants {

    public final static String USER_INFO = "USER_INFO";

    public final static String SESSION_USER = "SESSION_USER";

    //验证码
    public static final String SESSION_VALIDATECODE = "SESSION_VALIDATECODE";//验证码

    //用户登录信息
    public static final String REMEMBER ="remember";//记住密码
    public static final String LOGIN_USER_CODE ="loginCode";//用户登陆ID
    public static final String LOGIN_USER_PASSWORD ="password";//用户登陆密码
    public static final String LOGIN_USER_NOT_EXIST ="LOGIN_USER_NOT_EXIST";//用户不存在
    public static final String LOGIN_USER_LOCK ="LOGIN_USER_LOCK";//用户被锁定
    public static final String LOGIN_USER_PASSWORD_WRONG ="LOGIN_USER_PASSWORD_WRONG";//用户密码错误
    public static final String LOGIN_USER_IDENTIFY_WRONG ="LOGIN_USER_IDENTIFY_WRONG";//用户验证码错误
    public static final String LOGIN_USER_SUCCESS ="LOGIN_USER_SUCCESS";//用户登录成功

    //用户session信息
    public static final String LOGIN_SESSION_USER_ID ="LOGIN_SESSION_USER_ID";//用户id
    public static final String LOGIN_SESSION_USER_CHECK_CODE ="LOGIN_SESSION_USER_CHECK_CODE";//用户校验码

    //用户登录失败信息记录
    public static final String LOGIN_USER_ERROR_NUM = "LOGIN_USER_ERROR_NUM";
    public static final String LOGIN_USER_PASSWORD_ERROR_NUM = "LOGIN_USER_PASSWORD_ERROR_NUM";

    //用户重置密码校验
    public static final String LOGIN_RESETPASSWORD_SUCCESS = "LOGIN_RESETPASSWORD_SUCCESS";
    public static final String LOGIN_RESETPASSWORD_FALSE = "LOGIN_RESETPASSWORD_FALSE";
    public static final String LOGIN_RESETPASSWORD_RESULT = "LOGIN_RESETPASSWORD_RESULT";

    //分页信息
    public static final String PAGE_KEY = "page";// 表示请求页码的参数名称
    public static final String PAGE_DEFAULT_VALUE = "0";// 表示请求页码的默认值
    public static final String ROWS_KEY = "rows";// 表示请求行数的参数名称
    public static final String ROWS_DEFAULT_VALUE = "10";// 表示请求行数的默认值
    public static final String SORT_KEY = "sidx";// 表示用于排序的列名的参数名称
    public static final String ORDER_KEY = "sord";// 表示采用的排序方式的参数名称
    public static final String RESULT_MAP_ID = "BaseResultMap";// 用于获取Bean字段名和Table字段名映射

    // 默认字典
    public static final int DELETE_N = 0;
    public static final int DELETE_Y = 1;
    public static final int FROZEN_N = 0;
    public static final int FROZEN_Y = 1;

    //部门默认字典
    public static final int LEAD_N = 0;
    public static final int LEAF_Y = 1;
    public static final int TREE_LEVEL_0 = 0;
    public static final int TREE_LEVEL_1 = 1;
    public static final int TREE_LEVEL_2 = 2;

    public static final String MENU_OPTIONS = "menuOptions";

    public static final String RESOURCE_POOL_PROCESS_ID = "81333";
    public static final String PCSERVER_PROCESS_ID = "81212";




}
